package cn.iocoder.yudao.module.wgxm.controller.admin.lx.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 项目立项新增/修改 Request VO")
@Data
public class LxSaveReqVO {

    @Schema(description = "立项表单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3078")
    private Long id;

    @Schema(description = "立项名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "立项名称不能为空")
    private String name;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    @Schema(description = "审批结果", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "审批结果不能为空")
    private Integer status;

    @Schema(description = "流程实例的编号", example = "6102")
    private String processInstanceId;

}